{include(file='header.tpl')}
                <p id="subnav">{$language_breadcrumb}: <a href="{$base_uri}">Webgis</a> &gt; <a href="{$base_uri}index.php?input=map&amp;m_id={$m_id}">{$map_title}</a> &gt; {$analysis_title}
                <h2>{$map_title}</h2>
                <form method="post" action="{$base_uri}index.php?input=map&amp;m_id={$m_id}&amp;overlay={$overlay}&amp;overlayupdate=1" id="layerpropsform">
                <fieldset>
                    <legend>{$language_fieldset_legend_layerproperties}</legend>
                    <p><label for="layer_opacity">{$language_label_opacity}</label><input type="range" min="0" max="100" step="5" value="{$arr_properties.layer_opacity}" id="layer_opacity" name="layer_opacity" /></p>
                </fieldset>
                <fieldset>
                    <legend>{$language_fieldset_legend_fill_options}</legend>
                    <p><label for="fill_color" title="{$language_title_fill_color}" class="tooltip">{$language_label_color}</label><input type="color" class="procolor" id="fill_color" name="fill_color" value="#{$arr_properties.fill_color}" /></p>
                    <p><label for="no_filling">{$language_label_no_filling}</label><input type="checkbox" id="no_filling" name="no_filling"{if $arr_properties.no_filling == true} checked="checked"{/if} /></p>
                </fieldset>
                <fieldset>
                    <legend>{$language_fieldset_legend_outline_options}</legend>
                    <p><label for="outline_color" title="{$language_title_outline_color}" class="tooltip">{$language_label_color}</label><input type="color" class="procolor" id="outline_color" name="outline_color" value="#{$arr_properties.outline_color}" /></p>
                    <p><label for="outline_width" title="{$language_title_outline_width}">{$language_label_outline_width}</label><input type="number" min="1" max="10" step="1" name="outline_width" id="outline_width" value="{$arr_properties.outline_width}" /></p>
                </fieldset>
                <fieldset>
                    <legend>{$language_legend_baselayer_labeling}</legend>
                    <p>
                        {$language_label_baselayer_labeling}:
                    </p>
                    <ul>
                        <li><input type="radio" name="baselayer_labeling" value="no_change" id="labeling_no_change"{if $arr_properties.baselayer_labeling == 'no_change'} checked="checked"{/if} /><label for="labeling_no_change">{$language_option_labeling_no_change}</label></li>
                        <li><input type="radio" name="baselayer_labeling" value="all" id="labeling_all"{if $arr_properties.baselayer_labeling == 'all'} checked="checked"{/if} /><label for="labeling_all">{$language_option_labeling_all}</label></li>
                        <li><input type="radio" name="baselayer_labeling" value="intersect" id="labeling_intersect"{if $arr_properties.baselayer_labeling == 'intersect'} checked="checked"{/if} /><label for="labeling_intersect">{$language_option_labeling_intersect}</label></li>
                        <li><input type="radio" name="baselayer_labeling" value="contain_overlay" id="labeling_contain_overlay"{if $arr_properties.baselayer_labeling == 'contain_overlay'} checked="checked"{/if} /><label for="labeling_contain_overlay">{$language_option_labeling_contain_overlay}</label></li>
                        <li><input type="radio" name="baselayer_labeling" value="contain_baselayer" id="labeling_contain_baselayer"{if $arr_properties.baselayer_labeling == 'contain_baselayer'} checked="checked"{/if} /><label for="labeling_contain_baselayer">{$language_option_labeling_contain_baselayer}</label></li>
                        <li><input type="radio" name="baselayer_labeling" value="within" id="labeling_within"{if $arr_properties.baselayer_labeling == 'within'} checked="checked"{/if} /><label for="labeling_within">{$language_option_labeling_within}</label> <input type="number" min="0" name="within_distance" />({$language_map_unit}: {$mapunit})</li>
                    </ul>
                </fieldset>
                <fieldset>
                    <legend>{$language_legend_overlay_regions}</legend>
                    <ol id="regions_list">
                        {foreach $arr_regions key item}
                        <li><input type="checkbox" name="arr_regions[]" id="region_{$key}" value="{$key}"{if $arr_properties.areas.$key !== null || $regionscount == 0} checked="checked"{/if} /><label for="region_{$key}">{$item}</label></li>
                        {/foreach}
                    </ol>
                </fieldset>
                <p><input type="submit" value="{$language_submit_save}" id="layerpropsformsubmit" /><img src="{$base_uri}/output/theme/default/images/ajax-loader.gif" alt="{$language_alt_saving}" style="display: none;" id="loading_image" /><span id="ajax_response_message" style="display: none;"></span></p>
                </form>
                <script type='text/javascript' src='{$base_uri}output/theme/default/js/modernizr.js'></script>
                <script type='text/javascript' src='{$base_uri}output/theme/default/js/procolor.js'></script>
                <script type="text/javascript" src="{$base_uri}output/theme/default/js/prototype/scriptaculous/scriptaculous.js?load=effects"></script>
                <script type='text/javascript' src='{$base_uri}output/theme/default/js/layerprops.js'></script>
                <script type='text/javascript' src='{$base_uri}output/theme/default/js/selectall.js'></script>
                <script type="text/javascript">
                /* <![CDATA[ */
                    new Select_All('regions_list');
                /* ]]> */
               </script>
                <p class="button"><a href="{$base_uri}index.php?input=map&amp;m_id={$m_id}">{$language_back_to_map}</a></p>
{include(file='footer.tpl')}
